-
Notifications
You must be signed in to change notification settings - Fork 132
[Dynamic Dashboard] Make order items clickable #11554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #11554 +/- ##
============================================
- Coverage 40.47% 40.46% -0.02%
Complexity 5200 5200
============================================
Files 1083 1083
Lines 62996 63015 +19
Branches 8623 8625 +2
============================================
Hits 25497 25497
- Misses 35204 35223 +19
Partials 2295 2295 ☔ View full report in Codecov by Sentry. |
navigateSafely( | ||
resId = R.id.orders, | ||
navOptions = navOptions { | ||
popUpTo(graph.findStartDestination().id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why do you need these navOptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes an issue when you try to tap on the bottom navigation, which doesn't work without the above. Hicham found this solution here.
Nice work @0nko! Code looks good and everything works as expected. I just left a minor question about the need of |
Part of #11461. The PR makes order items of the orders card clickable and tapping on them opens an order detail. The navigation first opens the order list, which then opens the order details. The order list is required because it handles order trashing.
Screen_recording_20240520_214206.webm
To test: